package cn.fresh.xuanyuan.module.product.vo.orchard;

import cn.fresh.xuanyuan.framework.common.validation.Mobile;
import cn.fresh.xuanyuan.framework.common.validation.Telephone;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class OrchardSaveReqVO {

    private Integer id;

    @NotBlank(message = "果园名称不能为空")
    @Length(min = 2, max = 100, message = "果园名称长度在2~100个字符以内")
    private String name;

    @NotBlank(message = "微信号不能为空")
    @Length(min = 2, max = 100, message = "微信号长度在2~100个字符以内")
    private String wxAccount;

    @NotBlank(message = "联系方式不能为空")
    @Mobile
    private String phone;

    @NotBlank(message = "联系人不能为空")
    @Length(min = 2, max = 50, message = "联系人长度在2~50个字符以内")
    private String contacts;

    @NotBlank(message = "详细地址不能为空")
    @Length(min = 2, max = 200, message = "详细地址长度在2~50个字符以内")
    private String address;

    @NotBlank(message = "省份不能为空")
    private String province;

    @NotBlank(message = "城市不能为空")
    private String city;

    @NotBlank(message = "区县不能为空")
    private String area;

    private String avatar;

    private String code;

    private String categoryId;

    @NotNull(message = "请选择分类")
    private List<Long> cateIds;

    private String categoryName;

    private String remark;

    private Integer status;

    private Boolean selfOrchard;
}
